"""
循环平均值练习
"""
theSum = 0  # 和
count = 0  # 数字个数
while True:
    num = input("请输入一个数字, ';'代表结束: ")
    if num == ';':
        break
    num = float(num)
    theSum += num
    count += 1
print(f"the average = {theSum / count}")
